def make_squares(arr):
  for i in range(len(arr)):
    arr[i] = arr[i] *arr[i]

  for x in range(len(arr)):
    for y in range(len(arr)-x-1):
      if(arr[y]>arr[y+1]):
        temp = arr[y+1]
        arr[y+1] = arr[y]
        arr[y] = temp
  return arr


def main():

  print("Squares: " + str(make_squares([-2, -1, 0, 2, 3])))
  print("Squares: " + str(make_squares([-3, -1, 0, 1, 2])))


main()